package demo6;

import java.util.Comparator;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:张熳
 * Date:2025-08-31
 * Time:23:14
 */
public class AgeComparable implements Comparator<Student> {
    @Override
    public int compare(Student o1, Student o2) {
    return o1.age - o2.age;
    }
}
